import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';

const MaterialColor white = const MaterialColor(
  0xFFFFFFFF,
  <int, Color>{
    50: Color(0xFFFFFFFF),
    100: Color(0xFFFFFFFF),
    200: Color(0xFFFFFFFF),
    300: Color(0xFFFFFFFF),
    400: Color(0xFFFFFFFF),
    500: Color(0xFFFFFFFF),
    600: Color(0xFFFFFFFF),
    700: Color(0xFFFFFFFF),
    800: Color(0xFFFFFFFF),
    900: Color(0xFFFFFFFF),
  },
);

///主色调
const MaterialColor primary = const MaterialColor(
  0xfffb7299,
  const <int, Color>{50: const Color(0xffff9db5)},
);

class HiColor {
  static const Color red = Color(0xFFFF4759);
  static const Color dark_red = Color(0xFFE03E4E);
  static const Color dark_bg = Color(0xFF18191A);
}

class ZdColor {
  //easy rgba
  static Color rgba(int r, int g, int b, double a) {
    return Color.fromRGBO(r, g, b, a);
  }
}

double height(double height) {
  return ScreenUtil().setHeight(height);
}

double width(double width) {
  return ScreenUtil().setWidth(width);
}

double sp(double sp) {
  return ScreenUtil().setSp(sp);
}

double radius(double radius) {
  return ScreenUtil().setSp(radius);
}

class ZdDate {
  DateTime date = DateTime(2021);
}
